﻿#region references
using System;
using System.Collections.Generic;
#endregion

namespace IcaGames.Objects
{
    /*
     * Class that holds all attributes of a Game Object.
     * 
     * @author
     * Rick Oonk
     * 
     * @version
     * 1.0
     * 
     * @update
     * 20-11-2009 by Rick Oonk.
     * Created Class and added attributes and standard functions. 
     */
    [Serializable]
    public class Game
    {
        #region private attributes
        private int gameNr;
        private string title;
        private string descriptionShort;
        private string descriptionLong;
        private decimal price;
        private int gameSize;
        private int stock;
        private int sold;
        private Publisher publisher;
        private Platform platform;
        private int amount;
        private int downloads;
        private DateTime downloadLimit;
        private int cartId;
        private int cover;
        #endregion

        #region public attributes
        public int GameNr { get { return gameNr; } set { gameNr = value; } }
        public string Title { get { return title; } set { title = value; } }
        public string DescriptionShort { get { return descriptionShort; } set { descriptionShort = value; } }
        public string DescriptionLong { get { return descriptionLong; } set { descriptionLong = value; } }
        public decimal Price { get { return price; } set { price = value; } }
        public int GameSize { get { return gameSize; } set { gameSize = value; } }
        public int Stock { get { return stock; } set { stock = value; } }
        public int Sold { get { return sold; } set { sold = value; } }
        public Publisher Publisher { get { return publisher; } set { publisher = value; } }
        public Platform Platform { get { return platform; } set { platform = value; } }
        public int Amount { get { return amount; } set { amount = value; } }
        public int Downloads { get { return downloads; } set { downloads = value; } }
        public DateTime DownloadLimit { get { return downloadLimit; } set { downloadLimit = value; } }
        public int CartId { get { return cartId; } set { cartId = value; } }
        public int Cover { get { return cover; } set { cover = value; } }
        #endregion
    }
}
